Remove submodule directory before cloning
authorAlex Crichton <alex@alexcrichton.com>
Thu, 14 Apr 2016 17:40:36 +0000 (10:40 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 14 Apr 2016 17:40:36 +0000 (10:40 -0700)
commitbd9cf885a23c35aa4d89ed9e22f020bca4feb16e
tree7e0575142b4aa4cc8502060eaba33b8528efb5ee
parent88e30811d3f85a881452d22a852714c7e440ddad
Remove submodule directory before cloning

If the directory is in a corrupt state that caused an existing repository to not
successfully open, then we'll want to blow it away anything that already exists
to ensure we start from a clean slate.

Closes #2567
src/cargo/sources/git/utils.rs